import pymysql

c = pymysql.connect(host='127.0.0.1', port=3306, user='root', password='123456', database='p9sd', charset='utf8')
sd = c.cursor()
sql = "insert into fsaf values(1, '刘明', 1660555675), (2, '张天'，1660555676)"

try:
    sd.execute(sql)
    c.commit()
    print('插入成功')
except:
    c.rollback()
    print('插入失败')


